package com.zmn.oms.services.impl.warn;

import com.zmn.oms.model.entity.warn.OrderWarn;
import com.zmn.oms.model.entity.warn.OrderWarnQuery;
import com.zmn.oms.persistence.interfaces.warn.OrderWarnDao;
import com.zmn.oms.services.interfaces.warn.OrderWarnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类描述：订单预警信息Service实现
 *
 * @author LiangHailong
 * @date 2019/07/29 15:56
 */
@Service
public class OrderWarnServiceImpl implements OrderWarnService {

    @Autowired
    private OrderWarnDao orderWarnDao;

    @Override
    public Integer insertOrderWarn(OrderWarn orderWarn) {
        return orderWarnDao.insertOrderWarn(orderWarn);
    }

    @Override
    public Integer updateOrderWarnById(OrderWarn orderWarn) {
        return orderWarnDao.updateOrderWarnById(orderWarn);
    }

    @Override
    public List<OrderWarn> listOrderWarns(OrderWarnQuery orderWarnQuery) {
        return orderWarnDao.listOrderWarns(orderWarnQuery);
    }

    @Override
    public List<OrderWarn> listOrderWarnsByOuterWarnIds(List<Long> outerWarnIds) {
        return orderWarnDao.listOrderWarnsByOuterWarnIds(outerWarnIds);
    }
}
